package com.zq.designpaterns.behavior.visitor;

/**
 * ================================================
 * 作    者：程志强
 * 邮    箱：cheng.zhiqiang@cesgroup.com.cn
 * 版    本：1.0.0
 * 创建日期：2021/01/26  10:17
 * 修改日期：
 * 描    述：计算机部件访问者
 * 修订历史：
 * ================================================
 */
public class ComputerPartDisplayVisitor implements ComputerPartVisitor {

    @Override
    public void visitor(Keyboard keyboard) {
        System.out.println("Display  keyboard");
    }

    @Override
    public void visitor(Mouse mouse) {
        System.out.println("Display  mouse");
    }

    @Override
    public void visitor(Monitor monitor) {
        System.out.println("Display  monitor");
    }

    @Override
    public void visitor(Computer computer) {
        System.out.println("Display  computer");
    }
}
